package com.sl.au.service;

import java.util.List;

import com.sl.au.entity.Customer;
import com.sl.au.entity.KeyContact;
import com.sl.au.repository.CustomerRepository;
import com.sl.au.repository.KeyContactRepository;

public interface CustomerService extends BaseService {
	CustomerRepository getRepository();

	KeyContactRepository getKeyContactRepository();

	List<Customer> getCustomer(int start, int length, String key, String dataFilter, String superior, String areaName,String userId);

	/**
	 * 或一个customer相关的关键人物
	 * 
	 * @param start
	 * @param length
	 * @param key
	 * @param customer
	 * @return
	 */
	List<KeyContact> getKeyContacts(int start, int length, String key, String customerId);

	
	/**客户编号唯一性验证
	 * @param customerId
	 * @param customerCode
	 * @return
	 */
	long codeValidate(String customerId,String customerCode);
	
	/**唯一的客户编号**/
	String getCustomerCode();

	String updataSareaName();
}
